package com.qzdsoft.erpcloud.mapper.proj;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.qzdsoft.erpcloud.domain.proj.MaterialInfo;
import com.qzdsoft.erpcloud.domain.proj.MaterialInfoExample;
import com.qzdsoft.erpcloud.domain.proj.MaterialInfoKey;
import com.qzdsoft.vo.PageRequest;

public interface MaterialInfoMapper {
    int countByExample(MaterialInfoExample example);

    int deleteByExample(MaterialInfoExample example);

    int deleteByPrimaryKey(MaterialInfoKey key);

    int insert(MaterialInfo record);

    int insertSelective(MaterialInfo record);

    List<MaterialInfo> selectByExample(MaterialInfoExample example);

    MaterialInfo selectByPrimaryKey(MaterialInfoKey key);

    int updateByExampleSelective(@Param("record") MaterialInfo record, @Param("example") MaterialInfoExample example);

    int updateByExample(@Param("record") MaterialInfo record, @Param("example") MaterialInfoExample example);

    int updateByPrimaryKeySelective(MaterialInfo record);

    int updateByPrimaryKey(MaterialInfo record);
    
    
    long countMaterial(@Param("key") String key);
    List<MaterialInfo> findPageMaterialInfo(@Param("pageRequest") PageRequest request,@Param("key") String key);
    /**
     * 获取所有的存货信息
     * @return
     */
	List<MaterialInfo> findAll();
}